{template header}
{template nav}
<div class="sidnav">您的位置：&nbsp;
    <a href="{url index.php?m=car}" target="_blank" >首页</a>&nbsp;&gt;&nbsp;
  <a href="{url index.php?m=car&f=qiugou}" target="_blank" >求购信息</a>&nbsp;&gt;&nbsp;发布求购信息
</div>


<script language="JavaScript">
<!--
function checkdata() {
if( $('#title').val() =="" || $('#title').val().length<5) {
alert("\n·请输入标题");
$('#title').focus(); 
return false;
}

if( $('#licheng').val() =="" || $('#licheng').val()<0.01) {
	alert("\n·请输入正确的行驶里程");
	$('#licheng').focus(); 
	return false;
	}
if( $('#price').val()=="") {
	alert("\n·请输入正确的车辆价格\n\n·面议请填0");
	$('#price').focus(); 
	return false;
	}
if( $('#contact').val() =="" || $('#contact').val().length<2) {
	alert("\n·请输入联系人名称");
	$('#contact').focus(); 
	return false;
	}
if( $('#phone').val() =="" || $('#phone').val().length<11) {
	alert("\n·请输入联系电话");
	$('#phone').focus(); 
	return false;
	}

if( $('#description').val().length>250) {
alert("\n·请输入不多于250字符的车辆详细配置");
return false;
}
return true;
}
function isNumberString (InString,RefString)
{
if(InString.length==0) return (false);
for (Count=0; Count < InString.length; Count++)  {
	TempChar= InString.substring (Count, Count+1);
	if (RefString.indexOf (TempChar, 0)==-1)  
	return (false);
}
return (true);
}

function showHide (id) 
{ 
var style = document.getElementById(id).style 
if (style.display == "none") 
style.display = "inline"; 
else 
style.display = "none"; 
} 
function showxt (id) 
{ 
var style = document.getElementById(id).style 
if (style.display == "none") 
style.display = "block"; 
else 
style.display = "none"; 
} 


function change_worker()
{
var ddlcolor=$("#ddlcolor").val();
 $("#color").val(ddlcolor);
}
// -->
</script>
<script language="javascript">
<!--
	function selectl(obj,data){
		if($(obj).attr("checked")=="checked"){
			$('#description').append(data+', ');
		}else{
			var a=$('#description').html();
			$('#description').html(a.replace(data+', ',''));
		}
	}
//-->
</script>

<table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="620" height="400" valign="top" class="fbbg1"><table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="501" height="35">&nbsp;<span class="f14bs">发布求购信息</span></td>
        <td width="99"><span class="f12cright">注*为必填</span></td>
      </tr>
      <tr>
        <td height="2" colspan="2" bgcolor="#E1E1E1"></td>
      </tr>
    </table>
    <table width="600" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table><form name="addform" method="post" action="{url index.php?m=car&f=qiugouadd}" onSubmit="return checkdata()"  autocomplete="off">
<table width="100%" border="0" align=center cellpadding="5" cellspacing="1">
<tr>
    <td width="19%" height=30 align=right><font color=red>*</font>标题：</td>
	<td width="81%" bgcolor="#FFFFFF">
	<input type="hidden" name="fabuq" id="fabuq" value="1"/>
	<input type="hidden" name="id" id="id" value="{$id}"/>
	<input name="title" type="text" size="60" class="inputm" value="{$data['title']}" maxlength="60" id="title"/>
    
    </td>
  </tr>

  <tr>
    <td height=30 align=right><font color=red>*</font>意向价格：</td>
	<td bgcolor="#FFFFFF"><input name="price" type="text"  value="{$data['price']}" class="inputm" id="price" size="10" maxlength="8"  onblur="this.value=money(this.value)" >
	<font color="#FF0000">万</font>元左右 </td>
  </tr>

<tr>
    <td height=30 align=right><font color=red>*</font>联系人：</td>
	<td bgcolor="#FFFFFF"><input name="contact" type="text"  value="{$data['contact']}" class="inputm" id="contact" size="40" maxlength="40"  >
	 </td>
  </tr>
  <tr>
    <td height=30 align=right><font color=red>*</font>电 话：</td>
	<td bgcolor="#FFFFFF"><input name="phone" type="text" class="inputm" id="phone"  value="{$data['phone']}" size="40" maxlength="40"  >
	 </td>
  </tr>
    
 
  <tr>
    <td width="19%" height=30 align=right><font color=red></font>意向车型：</td>
	<td width="81%" bgcolor="#FFFFFF">
	<select name="brand1" id="brand1" onchange="get_brand(this)" class="select_box1"><option value="0">请选择品牌...</option>
		{if $data['bid']}
       {get_brands_parent_options_bychild($data['bid'])}
       {else}
       {get_brands_parent(2,0)}
       {/if} </select>
<select name="brand2" id="brand2" class="select_box1"><option value="0">请选择车系...</option>
{if $data['bid']}
{get_brands_brother_options($data['bid'])}
{/if}</select>
    </td>
  </tr>
  <tr>
    <td height=30 align=right><font color=red></font>车 龄：</td>
<td bgcolor="#FFFFFF">
<select name="age" id="age"  class="select_box1">
	<option value="">请选择</option>
    <option value="1"{if $data['age']==1} selected{/if}>1年以内</option>
    <option value="2"{if $data['age']==2} selected{/if}>1-3年</option>
    <option value="3"{if $data['age']==3} selected{/if}>3-5年</option>
    <option value="4"{if $data['age']==4} selected{/if}>5-8年</option>
    <option value="5"{if $data['age']==5} selected{/if}>8年以上</option>
</td>
  </tr>   
 <tr><td height=33 align=right><font color=red></font>车身颜色：</td>
 <td><select name="ddlcolor" id="ddlcolor"  class="select_box1" onChange="change_worker();">
	<option value="">请选择</option>
	<option value="黑色" {if $data['color']=='黑色'}selected="selected"{/if}>黑色</option>
	<option value="白色" {if $data['color']=='白色'}selected="selected"{/if}>白色</option>
	<option value="银灰色" {if $data['color']=='银灰色'}selected="selected"{/if}>银灰色</option>
	<option value="深灰色" {if $data['color']=='深灰色'}selected="selected"{/if}>深灰色</option>
	<option value="咖啡色" {if $data['color']=='咖啡色'}selected="selected"{/if}>咖啡色</option>
	<option value="红色" {if $data['color']=='红色'}selected="selected"{/if}>红色</option>
	<option value="蓝色" {if $data['color']=='蓝色'}selected="selected"{/if}>蓝色</option>
	<option value="绿色" {if $data['color']=='绿色'}selected="selected"{/if}>绿色</option>
	<option value="黄色" {if $data['color']=='黄色'}selected="selected"{/if}>黄色</option>
	<option value="橙色" {if $data['color']=='橙色'}selected="selected"{/if}>橙色</option>
	<option value="香槟色" {if $data['color']=='香槟色'}selected="selected"{/if}>香槟色</option>
	<option value="紫色" {if $data['color']=='紫色'}selected="selected"{/if}>紫色</option>
	<option value="多彩色" {if $data['color']=='多彩色'}selected="selected"{/if}>多彩色</option>

</select>


&nbsp;
              <input name="cbxOtherColor" type="checkbox" id="cbxOtherColor"  onClick="$('#color').toggle();" />
其他颜色
              <input name="color" type="text" maxlength="10" id="color" value="{$data['color']}"  class="inputm" style="display: none" />
 
 
 </td>
 </tr>
  <tr>
    <td height="30" align="right" class="XXX">其它要求：&nbsp;</td>
	<td bgcolor="#FFFFFF" class="XXX"><label>
	  <textarea rows="5" cols="55" class="borderm" id="description" style="font-size:13px;padding:3px;" name="description"> {$data['description']}</textarea>
	</label></td>
  </tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="70" align="center"><label>
      <input type="submit" value="发布" class="button" style="border:0">
    </label></td>
  </tr>
</table>

</form>
    </td>
    <td width="10"></td>
    <td width="320" valign="top" class="fbbg_2">
    <table width="310" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="501" height="35">&nbsp;<span class="f14bs">发布求购说明</span></td>
        
      </tr>
      <tr>
        <td height="2" colspan="2" bgcolor="#E1E1E1"></td>
      </tr>
    </table>
    <table width="80%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
    <table width="310" border="0" align="center" cellpadding="5" cellspacing="1">
      <tr>
        <td width="13" height="33">·</td>
        <td width="254">填写品牌型号，常见车型可点击右侧快捷按钮</td>
      </tr>
      <tr>
        <td height="33">·</td>
        <td>选择车辆类别，以便于车辆分类</td>
      </tr>
      <tr>
        <td height="33">·</td>
        <td>变速箱类型对车辆价格有一定影响，请选择</td>
      </tr>
      <tr>
        <td height="33">·</td>
        <td>排量请填写数字，小数点用半角英文&quot;.&quot;非&quot;。&quot;</td>
      </tr>
      <tr>
        <td height="33">·</td>
        <td>常见颜色请直接选择，也可点击“其他”自己填写</td>
      </tr>
      <tr>
        <td height="33">·</td>
        <td>请选择上牌年份及月份</td>
      </tr>
      <tr>
        <td height="33">·</td>
        <td>里程单位“万公里”</td>
      </tr>
      <tr>
        <td height="33">·</td>
        <td>价格单位“万元”</td>
      </tr>
      <tr>
        <td height="33">·</td>
        <td>详细配置可选择或自己填写，有助于快速出售</td>
      </tr>
    </table></td>
  </tr>
</table>



{template footer}